<?php


namespace App\Util;

class Code
{
    // 通用返回码
    const SUCCESS = [ 20000, 'success' ];
    const FAIL    = [ -1,"失败" ];


    //参数返回格式
    const CLT_ILLEGAL       = [ 401, '传递参数不符合规范'];
    const Wx_CLT_ILLEGAL    = [ 402, '获取openid失败，请检查传递参数是否正确'];


    //服务格式返回

    const NO_LOGIN = [501,'请登录后重试'];


    //业务返回信息
    const AUTH_INVALID_ACCOUNT = [600, '账号不存在'];
    const AUTH_CAPTCHA_UNSUPPORT = [601, ''];
    const AUTH_CAPTCHA_FREQUENCY = [602, '验证码未超时1分钟，不能发送'];
    const AUTH_CAPTCHA_UNMATCH = [603, '验证码错误'];
    const AUTH_NAME_REGISTERED = [604, '用户已注册'];
    const AUTH_MOBILE_REGISTERED = [605, '手机号已注册'];
    const AUTH_MOBILE_UNREGISTERED = [606, '手机号未注册'];
    const AUTH_INVALID_MOBILE = [607, '手机号格式不正确'];
    const Wx_CAPTCHA_ILLEGAL    = [ 608, '图片验证码验证失败,请刷新后重试'];
    const GROUP_NOT_ILLEGAL    = [ 609, '查询用户分组不存在'];

}